package com.hsd.znsh.pojo.output;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.util.Date;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-08-02 15:22:09
 */
@Data
public class GatewayVO {

    /*主键*/
    private Integer id;

    /*名称*/
    private String name;

    /*别名*/
    private String alias;

    /*网关id*/
    private String gatewayId;

    /*基地id*/
    private Integer hostId;

    /*基地名称*/
    private String hostName;

    /*在线状态*/
    private Integer onlineStatus=1;

    /**/
    private String onlineStatusString;

    /*网关消息*/
    private String message;

    /*当前数据最新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

}
